<?php
/**
 * 侧栏模块设置模版
 * $Id: sidebar_module.php 233 2010-12-26 05:17:34Z bwanglei@gmail.com $
 */?>

<div id="main"><div id="left_sm">
	<strong>所有可用的模块</strong><br />
	<?php
	foreach ($widget_title as $w_name=>$w_info) {
		?>
		<div class="wt_modules" title="<?php echo $w_name;?>">
			<p class="sided">Module:<?php echo $w_info['title'];?>
			<span style="float:right;"><a href="javascript:add_module('<?php echo $w_name;?>');">添加</a></span></p>
		</div>
		<?php
	}?>
</div><div id="right_sm">
	<div><strong>目前侧栏的的模块</strong></div>
	<div id="loader_message_b"></div>
	<div id="right_modules">
	<?php
	foreach ($widgets as $w_name=>$w_info) {
		$callback = 'e_'.del_b($w_name);
		if (function_exists($callback)) {
			call_user_func($callback, $w_name,$w_info);
		}
	}?></div>
</div></div>
